{{assign var="title" value="文章列表"}}
{{include file="admin/intop.html"}}

<div class="toolsBar">
     <a href="admin.php?ctl=article&act=add&id={{$smarty.get.id}}"  class="button_style">添加文章</a>
</div>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="table_list">
    <tr>
        <th>ID</th>
        <th>标题</th>
        <th>分类</th>
        <th>排序</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    {{foreach from=$res.data item=item}}
    <tr>
        <td>{{$item.ID}}</td>
        <td class="lf">{{$item.TITLE}}</td>
        <td>{{$item.cat.NAME}}</td>
        <td>{{$item.ORDER_NUM}}</td>
        <td>{{if $item.STATE==1}}启用{{else}}禁用{{/if}}</td>
        <td><a id="GridView1_ctl02_hlkEdit"  href="admin.php?ctl=article&act=edit&id={{$item.ID}}">修改</a>
            | <a id="GridView1_ctl02_hlkDel" href="admin.php?ctl=article&act=del&id={{$item.ID}}">删除</a>
        </td>
    </tr>
    {{/foreach}}
    {{if $res.count}}
        <tr class="bottom"><td colspan="10" class="page">{{$res.page}}</td></tr>
    {{else}}
        <tr><td colspan="10">没有数据记录</td></tr>
    {{/if}}
</table>
{{include file="admin/infoot.html"}}